package com.super8.super8newtv.bean;

import android.text.TextUtils;

public class TokenBean {

    /**
     * access_token : eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJob3RlbElEIjoiNjYiLCJuYW1lQ24iOiLpgJ846YWS5bqX5a6J6Ziz57qi5peX6Lev5bqXKOWGheWuvikiLCJuYmYiOjE1ODE0MTU2NDgsImV4cCI6MTU4MTQxOTI0OCwiaXNzIjoic3VwZXI4LndlYmFwaS52MiIsImF1ZCI6ImFwaSJ9.a4WWZwZCwc8gomRdFMthTtSKyy7vSShOU8qiXEQVLF0
     * token_type : bearer
     * expires_in : 3599
     * refresh_token : 8662e58e112049618899cad3ef557f5dd33336fcbcdb4b08ad18f15c4477d07d
     */

    private String access_token;
    private String token_type;
    private int expires_in;
    private String refresh_token;

    public String getAccess_token() {
        return access_token;
    }

    public void setAccess_token(String access_token) {
        this.access_token = access_token;
    }

    public String getToken_type() {
        return token_type;
    }

    public void setToken_type(String token_type) {
        this.token_type = token_type;
    }

    public int getExpires_in() {
        return expires_in;
    }

    public void setExpires_in(int expires_in) {
        this.expires_in = expires_in;
    }

    public String getRefresh_token() {
        return refresh_token;
    }

    public void setRefresh_token(String refresh_token) {
        this.refresh_token = refresh_token;
    }

    //token是否正常  ture正常  false（刷新token可用）
    public boolean isNoExpire() {
        return !TextUtils.isEmpty(access_token);
    }
}
